Skip to content

Add explicit bucket boundaries for db.client.operation.duration metric#81

Open
jlordiales wants to merge 1 commit into
exaring:mainfrom
jlordiales:main
Open

Add explicit bucket boundaries for db.client.operation.duration metric#81
jlordiales wants to merge 1 commit into
exaring:mainfrom
jlordiales:main

Conversation

@jlordiales

@jlordiales jlordiales commented May 30, 2026

Copy link
Copy Markdown

The semantic conventions for this metric specify:

This metric SHOULD be specified with ExplicitBucketBoundaries advisory parameter of [ 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, 5, 10 ].

The default values for bucket boundaries are []float64{0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000} (code). This works well when working with milliseconds but this metric is calculated in seconds.

This PR aligns the metric with the semantic conventions.

@jlordiales

Copy link
Copy Markdown
Author

@obitech Quick one if you can take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant